home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Utilities / Remotes / Source / BoxViewSwitcher.h next >
Encoding:
Text File  |  1990-12-07  |  1.5 KB  |  66 lines

  1. /*---------------------------------------------------------------------------
  2. BoxViewSwitcher.h -- switch between box views using a popup list (button)
  3.  
  4. Copyright (c) 1990 Doug Brenner
  5.  
  6. $Source: /dbrenner/src/Class/BoxViewSwitcher.h,v $ $Revision: 2.0 $
  7. ---------------------------------------------------------------------------*/
  8.  
  9. #import <objc/Object.h>
  10.  
  11. @interface BoxViewSwitcher:Object
  12. {                               /* ---------- outlets */
  13.    id controlButton;        /* button that "pops up" the popup list */
  14.    id boxViewWindow;        /* window with alternative box views */
  15.    id boxView;            /* starting box view that is replaced */
  16.  
  17.    id delegate;            /* object to receive notification messages */
  18.  
  19.    id popup;            /* popup list activated by controlButton */
  20.    id boxViewList;        /* list of all possible box views */
  21. }
  22.  
  23. /* ---------- Setting values */
  24.  
  25. - setControlButton: anObject;
  26. - setBoxViewWindow: anObject;
  27. - setBoxView: anObject;
  28. - setDelegate: anObject;
  29.  
  30. /* ---------- Returning values */
  31.  
  32. - controlButton;
  33. - boxView;
  34. - popup;
  35. - boxViewList;
  36.  
  37. /* ---------- Interacting with the outside world */
  38.  
  39. - selectBoxView: sender;
  40. - selectBoxViewTitle:(const char *) title;
  41.  
  42. /* ---------- Free */
  43.  
  44. - free;
  45.  
  46. /* ---------- Archiving */
  47.  
  48. - write:(NXTypedStream *) stream;
  49. - read: (NXTypedStream *) stream;
  50.  
  51. /* ---------- Internal methods */
  52.  
  53. - setup;
  54. - replaceBoxViewWith: aView;
  55. + initialize;
  56.  
  57. @end
  58.  
  59. @interface BoxViewSwitcherDelegates:Object {}
  60.  
  61. /* ---------- Implemented by the BoxViewSwitcher's delegate */
  62.  
  63. - boxViewDidSwitch:sender;
  64.  
  65. @end
  66.